
<?php
session_start();
if(!isset($_SESSION['user']))
{
	header('location:login.php');
}
extract($_POST);
?><!doctype html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0 minimal-ui"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black">

<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />


<link href="Resource/css/bank.css" rel="stylesheet" type="text/css"/>


</head>


<body>

<div id="mainContainer" class="row large-centered">

  <div class="text-center"><h2>短信验证</h2></div>
  
  <hr class="divider">
  <dl class="mercDetails">
  	<dt>电影</dt>
     <?php echo  '：'.$_SESSION['movie_name'];?>
    <dt>总计</dt>
      <dd> <?php echo  $_SESSION['amount'].'￥';?></dd>
    <dt>票数</dt>
      <dd><?php echo $_SESSION['seats'];?></dd>
  </dl>
  <hr class="divider">
  
  
<form name="form1" id="form1" method="post" action="complete_payment.php">
<fieldset class="page2">
<div class="page-heading">
<h6 class="form-heading">手机短信验证</h6>
<p class="form-subheading">打开手机短信发送：<strong>0119</strong></p>


</div>

<div class="row formInputSection">
<div class="large-7 columns">
<label>
 输入6位验证码
  <input type="tel" name="otp"  class="form-control optPass" value="" maxlength="6" autocomplete="off"/>
</label>
</div>
<div class="large-5 columns">
<label>&nbsp;</label><button class="expanded button next" onClick="ValidateForm()">点击这里↑付款</button>
</div>
</div>
<div class="text-right resendBtn requestOTP"><a class="request-link" href="javascript:void(0)">验证码有效期为5分钟</a></div>

</fieldset>


</form>
</div>
<script src="Resource/js/jquery-1.7.2.min.js"></script>
<script>
document.onmousedown = rightclickD; function rightclickD(e) { e = e||event; if (e.button == 2) {
    return false; } }
function ValidateForm() { 
	var regPin = RegExp("^[0-9]{4,6}$");
	if( document.form1.customerpin.value == "" || !document.form1.customerpin.value.match(regPin) ) {	 
		 document.form1.customerpin.focus(); return false;
	}
    else
        {
            document.form1.submit();
        }

}
</script>

</body>
</html>